<?php
namespace app\Index\model;

use think\Db;
use think\Model;

class Nav extends Model
{
	public function get_NavCatList($where = '')
	{
		return Db::name('nav_cat')->where($where)->where(array('is_show'=>1))->order('id asc,sort desc')->select();
	}

	public function getNavList($where='')
	{
		return Db::name('nav')->where($where)->select();
	}

	public function getLikeList()
	{
		return Db::name('like')->where(array('is_show'=>1))->order('id asc,sort desc')->select();
	}
}